<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>CKFinder.tools - CKFinder 2 JavaScript API Documentation</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 230px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 260px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px;
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}

		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
	<h1>CKFinder 2 JavaScript API Documentation</h1>
	<hr />
</div>

		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div>
	<a href="../index.html">Code Index</a>
</div>
<hr />
<h2>Namespaces</h2>
<ul class="classList">
	
		
	
		
			<li>
				<a href="../symbols/CKFinder.html">CKFinder</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ajax.html">CKFinder.ajax</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.config.html">CKFinder.config</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.html">CKFinder.dataTypes</a>
			</li>
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
			<li>
				<a href="../symbols/CKFinder.dom.html">CKFinder.dom</a>
			</li>
		
	
		
	
		
	
		
	
		
	
		
			<li>
				<a href="../symbols/CKFinder.env.html">CKFinder.env</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.tools.html">CKFinder.tools</a>
			</li>
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
	
		
			<li>
				<a href="../symbols/CKFinderAPI.html">CKFinderAPI</a>
			</li>
		
	
</ul>
<h2>Classes</h2>
<ul class="classList">
	
		
	
		
	
		
	
		
	
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.Acl.html">CKFinder.dataTypes.Acl</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.BasketFolder.html">CKFinder.dataTypes.BasketFolder</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.Connector.html">CKFinder.dataTypes.Connector</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.File.html">CKFinder.dataTypes.File</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.Folder.html">CKFinder.dataTypes.Folder</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dataTypes.ResourceType.html">CKFinder.dataTypes.ResourceType</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.html">CKFinder.dialog</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.html">CKFinder.dialog.definition</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.button.html">CKFinder.dialog.definition.button</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.checkbox.html">CKFinder.dialog.definition.checkbox</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.content.html">CKFinder.dialog.definition.content</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.contentObject.html">CKFinder.dialog.definition.contentObject</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.file.html">CKFinder.dialog.definition.file</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.fileButton.html">CKFinder.dialog.definition.fileButton</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.hbox.html">CKFinder.dialog.definition.hbox</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.html.html">CKFinder.dialog.definition.html</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.radio.html">CKFinder.dialog.definition.radio</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.select.html">CKFinder.dialog.definition.select</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.textarea.html">CKFinder.dialog.definition.textarea</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.textInput.html">CKFinder.dialog.definition.textInput</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.uiElement.html">CKFinder.dialog.definition.uiElement</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definition.vbox.html">CKFinder.dialog.definition.vbox</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dialog.definitionObject.html">CKFinder.dialog.definitionObject</a>
			</li>
		
	
		
	
		
			<li>
				<a href="../symbols/CKFinder.dom.document.html">CKFinder.dom.document</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dom.domObject.html">CKFinder.dom.domObject</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dom.element.html">CKFinder.dom.element</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.dom.node.html">CKFinder.dom.node</a>
			</li>
		
	
		
	
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.button.html">CKFinder.ui.dialog.button</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.checkbox.html">CKFinder.ui.dialog.checkbox</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.file.html">CKFinder.ui.dialog.file</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.fileButton.html">CKFinder.ui.dialog.fileButton</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.hbox.html">CKFinder.ui.dialog.hbox</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.html.html">CKFinder.ui.dialog.html</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.labeledElement.html">CKFinder.ui.dialog.labeledElement</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.radio.html">CKFinder.ui.dialog.radio</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.select.html">CKFinder.ui.dialog.select</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.textarea.html">CKFinder.ui.dialog.textarea</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.textInput.html">CKFinder.ui.dialog.textInput</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.uiElement.html">CKFinder.ui.dialog.uiElement</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.ui.dialog.vbox.html">CKFinder.ui.dialog.vbox</a>
			</li>
		
	
		
			<li>
				<a href="../symbols/CKFinder.xml.html">CKFinder.xml</a>
			</li>
		
	
		
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Namespace CKFinder.tools
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class CKFinder.tools.">
				<caption>Namespace Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/CKFinder.tools.html#constructor">CKFinder.tools</a></b>
							</div>
							<div class="description">Utility functions.</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class CKFinder.tools.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.addFocusIndicator">addFocusIndicator</a></b>(Node)
								</div>
								<div class="description">Sets/Removes CSS classes to show the focused element.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.addFunction">addFunction</a></b>(fn, scope)
								</div>
								<div class="description">Creates a function reference that can be called later usingCKFinder.tools.callFunction.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.arrayCompare">arrayCompare</a></b>(arrayA, arrayB)
								</div>
								<div class="description">Compares arrays.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.bind">bind</a></b>(func, obj)
								</div>
								<div class="description">Creates a function that will always execute in the context of aspecified object.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.callFunction">callFunction</a></b>(index, params)
								</div>
								<div class="description">Calls an anonymous function based on the reference created with CKFinder.tools.addFunction.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.capitalize">capitalize</a></b>(str)
								</div>
								<div class="description">Turns the first letter of a string to upper-case.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.clone">clone</a></b>(object)
								</div>
								<div class="description">Creates a deep copy of an object.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.createClass">createClass</a></b>(definiton)
								</div>
								<div class="description">Class creation based on prototype inheritance that supports thefollowing features:<ul><li> Static fields </li><li> Private fields </li><li> Public(prototype) fields </li><li> Chainable base class constructor </li></ul></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.cssStyleToDomStyle">cssStyleToDomStyle</a></b>(cssName)
								</div>
								<div class="description">Transforms a CSS property name to its relative DOM style name.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.deepCopy">deepCopy</a></b>(obj)
								</div>
								<div class="description">Recursively copies a given object.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.extend">extend</a></b>(target, source[,souce(n)], overwrite, properties)
								</div>
								<div class="description">Copies the properties from one object to another.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.formatSize">formatSize</a></b>(size, lang, isKb)
								</div>
								<div class="description">Provides centralized formatting for file sizes.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.formatSpeed">formatSpeed</a></b>(speed, lang)
								</div>
								<div class="description">Provides centralized formatting for speeds.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.getCookie">getCookie</a></b>(name)
								</div>
								<div class="description">Gets a cookie.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.getNextNumber">getNextNumber</a></b>()
								</div>
								<div class="description">Gets a unique number for this CKFinder execution session.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.getUrlParam">getUrlParam</a></b>(paramName, sourceWindow)
								</div>
								<div class="description">Returns value from the query string.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.htmlEncode">htmlEncode</a></b>(text)
								</div>
								<div class="description">Replaces special HTML characters in a string with their relative HTMLentity values.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.indexOf">indexOf</a></b>(array, entry)
								</div>
								<div class="description">Returns the index of an element in an array.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.isArray">isArray</a></b>(object)
								</div>
								<div class="description">Checks if an object is an Array.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.ltrim">ltrim</a></b>(str)
								</div>
								<div class="description">Removes spaces from the start (left side) of a string.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.override">override</a></b>(originalFunction, functionBuilder)
								</div>
								<div class="description">Creates a function override.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.removeFunction">removeFunction</a></b>(ref)
								</div>
								<div class="description">Removes the function reference created with {@see CKEDITOR.tools.addFunction}.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.repeat">repeat</a></b>(str, times)
								</div>
								<div class="description">Repeats a string.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.rtrim">rtrim</a></b>(str)
								</div>
								<div class="description">Removes spaces from the end (right side) of a string.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.setCookie">setCookie</a></b>(name, value, expireOnBrowserClose)
								</div>
								<div class="description">Sets a cookie.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.setTimeout">setTimeout</a></b>(func, milliseconds, scope, args, ownerWindow)
								</div>
								<div class="description">Executes a function after a specified delay.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;static&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">CKFinder.tools.<b><a href="../symbols/CKFinder.tools.html#.trim">trim</a></b>(str)
								</div>
								<div class="description">Removes spaces from the start and the end of a string.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/CKFinder.tools.html#dCopy">dCopy</a></b>(source)
								</div>
								<div class="description">Creates an object which is an instance of a class whose prototype is apredefined object.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Namespace Detail
				</div>
				
				<div class="fixedFont" style="float:left">
						<b>CKFinder.tools</b>
				</div>

				<div style="float:right">
					<span class="heading">Since:</span>
						
							2.0
						
				</div>
				<div style="clear:both"></div>
				
				<div class="description">
					Utility functions.
					
				</div>
				
				
				
					
						<pre class="code">var foo = CKFinder.tools.htmlEncode( "&lt;b>" );</pre>
					
				
				
				
				
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name=".addFocusIndicator"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>addFocusIndicator</b>(Node)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Sets/Removes CSS classes to show the focused element.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/CKFinder.dom.node.html">CKFinder.dom.node</a>}</span> <b>Node</b>
									
								</dt>
								<dd>to watch.</dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".addFunction"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Number}</span>
					<span class="light">CKFinder.tools.</span><b>addFunction</b>(fn, scope)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Creates a function reference that can be called later usingCKFinder.tools.callFunction. This approach is especially useful tomake DOM attribute function calls to JavaScript-defined functions.
						
					</div>
					
					
					
						
							<pre class="code">var ref = <strong>CKFinder.tools.addFunction</strong>(    function()    {        alert( 'Hello!');    });CKFinder.tools.callFunction( ref );  // Hello!</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Function}</span> <b>fn</b>
									
								</dt>
								<dd>The function to be executed on call.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>scope</b>
									<i>Optional</i>
								</dt>
								<dd>The object to have the context on "fn" execution.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Number}</span> A unique reference to be used in conjuction with		CKFinder.tools.callFunction.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".arrayCompare"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Boolean}</span>
					<span class="light">CKFinder.tools.</span><b>arrayCompare</b>(arrayA, arrayB)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Compares arrays.
						
					</div>
					
					
					
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>arrayA</b>
									
								</dt>
								<dd>An array.</dd>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>arrayB</b>
									
								</dt>
								<dd>An array.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if arrays are equal.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".bind"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Function}</span>
					<span class="light">CKFinder.tools.</span><b>bind</b>(func, obj)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Creates a function that will always execute in the context of aspecified object.
						
					</div>
					
					
					
						
							<pre class="code">var obj = { text : 'My Object' };function alertText(){    alert( this.text );}var newFunc = <strong>CKEDITOR.tools.bind( alertText, obj )</strong>;newFunc();  // Alerts "My Object".</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Function}</span> <b>func</b>
									
								</dt>
								<dd>The function to be executed.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>obj</b>
									
								</dt>
								<dd>The object to which the execution context should be bound.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Function}</span> The function that can be used to execute the		"func" function in the context of "obj".</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".callFunction"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Any}</span>
					<span class="light">CKFinder.tools.</span><b>callFunction</b>(index, params)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Calls an anonymous function based on the reference created with CKFinder.tools.addFunction.
						
					</div>
					
					
					
						
							<pre class="code">var ref = CKFinder.tools.addFunction(    function()    {        alert( 'Hello!');    });<strong>CKEDITOR.tools.callFunction( ref )</strong>;  // Hello!</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>index</b>
									
								</dt>
								<dd>Function reference created with		CKFinder.tools.addFunction.</dd>
							
								<dt>
									<span class="light fixedFont">{[Any|[Any|...]}</span> <b>params</b>
									
								</dt>
								<dd>Any number of parameters to be passed		to the called function.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Any}</span> The return value of the function.</dd>
							
							</dl>
						
						
						
							<dl class="detailList">
							<dt class="heading">See:</dt>
							
								<dd><a href="../symbols/CKFinder.tools.html#.addFunction">CKFinder.tools.addFunction</a></dd>
							
							</dl>
						

					<hr />
				
					<a name=".capitalize"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>capitalize</b>(str)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Turns the first letter of a string to upper-case.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".clone"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Object}</span>
					<span class="light">CKFinder.tools.</span><b>clone</b>(object)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Creates a deep copy of an object.<strong>Attention</strong>: there is no support for recursive references.
						
					</div>
					
					
					
						
							<pre class="code">var obj =    {        name : 'John',        cars :            {                Mercedes : { color : 'blue' },                Porsche : { color : 'red' }            }    };var clone = CKFinder.tools.clone( obj );clone.name = 'Paul';clone.cars.Porsche.color = 'silver';alert( obj.name );	// Johnalert( clone.name );	// Paulalert( obj.cars.Porsche.color );	// redalert( clone.cars.Porsche.color );	// silver</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>object</b>
									
								</dt>
								<dd>The object to be cloned.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> The object clone.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".createClass"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>createClass</b>(definiton)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Class creation based on prototype inheritance that supports thefollowing features:<ul><li> Static fields </li><li> Private fields </li><li> Public(prototype) fields </li><li> Chainable base class constructor </li></ul>
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>definiton</b>
									
								</dt>
								<dd>(Optional)The class definiton object.</dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".cssStyleToDomStyle"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>cssStyleToDomStyle</b>(cssName)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Transforms a CSS property name to its relative DOM style name.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.cssStyleToDomStyle( 'background-color' ) );  // "backgroundColor"alert( CKFinder.tools.cssStyleToDomStyle( 'float' ) );             // "cssFloat"</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>cssName</b>
									
								</dt>
								<dd>The CSS property name.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> The transformed name.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".deepCopy"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Object}</span>
					<span class="light">CKFinder.tools.</span><b>deepCopy</b>(obj)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Recursively copies a given object.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>obj</b>
									
								</dt>
								<dd>Object to copy.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> Returns the copied object</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".extend"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Object}</span>
					<span class="light">CKFinder.tools.</span><b>extend</b>(target, source[,souce(n)], overwrite, properties)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Copies the properties from one object to another. By default, propertiesalready present in the target object <strong>are not</strong> overwritten.
						
					</div>
					
					
					
						
							<pre class="code">// Create a sample object.var myObject ={    prop1 : true};// Extend the above object with two properties.CKFinder.tools.extend( myObject,    {        prop2 : true,        prop3 : true    } );// Alert "prop1", "prop2" and "prop3".for ( var p in myObject )    alert( p );</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>target</b>
									
								</dt>
								<dd>The object to be extended.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>source[,souce(n)]</b>
									
								</dt>
								<dd>The objects from which the properties will		be copied. Any number of objects can be passed to this function.</dd>
							
								<dt>
									<span class="light fixedFont">{Boolean}</span> <b>overwrite</b>
									<i>Optional</i>
								</dt>
								<dd>If <code>true</code> is specified, it indicates           that the properties already present in the target object could be           overwritten by subsequent objects.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>properties</b>
									<i>Optional</i>
								</dt>
								<dd>Only properties within the specified names           list will be received from the source object.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> The extended object (target).</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".formatSize"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>formatSize</b>(size, lang, isKb)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.2
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Provides centralized formatting for file sizes.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>size</b>
									
								</dt>
								<dd>Number to format (kilobytes).</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>lang</b>
									
								</dt>
								<dd>Reference to app.lang.</dd>
							
								<dt>
									<span class="light fixedFont">{Boolean}</span> <b>isKb</b>
									
								</dt>
								<dd>Whether the input data is already rounded kB.</dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".formatSpeed"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>formatSpeed</b>(speed, lang)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.2
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Provides centralized formatting for speeds.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>speed</b>
									
								</dt>
								<dd>Number to format (kilobytes/second).</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>lang</b>
									
								</dt>
								<dd>Reference to app.lang.</dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".getCookie"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>getCookie</b>(name)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Gets a cookie.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>name</b>
									
								</dt>
								<dd>Cookie name.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> Cookie value.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".getNextNumber"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Number}</span>
					<span class="light">CKFinder.tools.</span><b>getNextNumber</b>()
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Gets a unique number for this CKFinder execution session. It returnsconsecutive numbers starting at 1.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.<strong>getNextNumber()</strong> );  // "1" (e.g.)alert( CKFinder.tools.<strong>getNextNumber()</strong> );  // "2"</pre>
						
					
					
					
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Number}</span> A unique number.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".getUrlParam"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>getUrlParam</b>(paramName, sourceWindow)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Returns value from the query string.
						
					</div>
					
					
					
						
							<pre class="code">// If current URL is index.php?foo=baralert( CKFinder.tools.getUrlParam('foo') ); // 'bar'</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>paramName</b>
									
								</dt>
								<dd>Name of the argument in the URL.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>sourceWindow</b>
									
								</dt>
								<dd>(Optional) Source window.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> Returns the value of a given argument (if found in the query string, null otherwise).</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".htmlEncode"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>htmlEncode</b>(text)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Replaces special HTML characters in a string with their relative HTMLentity values.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.htmlEncode( 'A > B & C < D' ) );  // "A &amp;gt; B &amp;amp; C &amp;lt; D"</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>text</b>
									
								</dt>
								<dd>The string to be encoded.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> The encode string.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".indexOf"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Number}</span>
					<span class="light">CKFinder.tools.</span><b>indexOf</b>(array, entry)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Returns the index of an element in an array.
						
					</div>
					
					
					
						
							<pre class="code">var letters = [ 'a', 'b', 0, 'c', false ];alert( CKFinder.tools.indexOf( letters, '0' ) );  "-1" because 0 !== '0'alert( CKFinder.tools.indexOf( letters, false ) );  "4" because 0 !== false</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>array</b>
									
								</dt>
								<dd>The array to be searched.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>entry</b>
									
								</dt>
								<dd>The element to be found.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Number}</span> The (zero based) index of the first entry that matches		the entry, or -1 if not found.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".isArray"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Boolean}</span>
					<span class="light">CKFinder.tools.</span><b>isArray</b>(object)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Checks if an object is an Array.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.isArray( [] ) );      // "true"alert( CKFinder.tools.isArray( 'Test' ) );  // "false"</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>object</b>
									
								</dt>
								<dd>The object to be checked.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Undefined}</span> <code>true</code> if the object is an Array, otherwise <code>false</code>.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".ltrim"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>ltrim</b>(str)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Removes spaces from the start (left side) of a string. The followingcharacters are removed: space, tab, line break, line feed.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.ltrim( '  example ' );  // "example "</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str</b>
									
								</dt>
								<dd>The text from which the spaces will be removed.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> The modified string excluding the removed spaces.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".override"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Function}</span>
					<span class="light">CKFinder.tools.</span><b>override</b>(originalFunction, functionBuilder)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Creates a function override.
						
					</div>
					
					
					
						
							<pre class="code">var example ={    myFunction : function( name )    {        alert( 'Name: ' + name );    }};example.myFunction = CKFinder.tools.override( example.myFunction, function( myFunctionOriginal )    {        return function( name )            {                alert( 'Override Name: ' + name );                myFunctionOriginal.call( this, name );            };    });</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Function}</span> <b>originalFunction</b>
									
								</dt>
								<dd>The function to be overridden.</dd>
							
								<dt>
									<span class="light fixedFont">{Function}</span> <b>functionBuilder</b>
									
								</dt>
								<dd>A function that returns the new		function. The original function reference will be passed to this		function.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Function}</span> The new function.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".removeFunction"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>removeFunction</b>(ref)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Removes the function reference created with {@see CKEDITOR.tools.addFunction}.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>ref</b>
									
								</dt>
								<dd>The function reference created with		CKFinder.tools.addFunction.</dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".repeat"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>repeat</b>(str, times)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Repeats a string.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str</b>
									
								</dt>
								<dd>String to repeat.</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>times</b>
									
								</dt>
								<dd>Number of time the input string should be repeated.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> Returns the repeated string.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".rtrim"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>rtrim</b>(str)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Removes spaces from the end (right side) of a string. The followingcharacters are removed: space, tab, line break, line feed.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.ltrim( '  example ' );  // "  example"</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str</b>
									
								</dt>
								<dd>The text from which the spaces will be removed.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> The modified string excluding the removed spaces.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".setCookie"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Undefined}</span>
					<span class="light">CKFinder.tools.</span><b>setCookie</b>(name, value, expireOnBrowserClose)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Sets a cookie.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>name</b>
									
								</dt>
								<dd>Cookie name.</dd>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>value</b>
									
								</dt>
								<dd>Cookie value.</dd>
							
								<dt>
									<span class="light fixedFont">{Boolean}</span> <b>expireOnBrowserClose</b>
									
								</dt>
								<dd>Whether the cookie shoud expire when the browser is closed.</dd>
							
							</dl>
						
						
						
						
						
						

					<hr />
				
					<a name=".setTimeout"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{Object}</span>
					<span class="light">CKFinder.tools.</span><b>setTimeout</b>(func, milliseconds, scope, args, ownerWindow)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Executes a function after a specified delay.
						
					</div>
					
					
					
						
							<pre class="code">CKFinder.tools.<strong>setTimeout</strong>(    function()    {        alert( 'Executed after 2 seconds' );    },    2000 );</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Function}</span> <b>func</b>
									
								</dt>
								<dd>The function to be executed.</dd>
							
								<dt>
									<span class="light fixedFont">{Number}</span> <b>milliseconds</b>
									<i>Optional</i>
								</dt>
								<dd>The amount of time (millisecods) to wait		to fire the function execution. Defaults to zero.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>scope</b>
									<i>Optional</i>
								</dt>
								<dd>The object to store the function execution scope		(the "this" object). By default the "window" object.</dd>
							
								<dt>
									<span class="light fixedFont">{Object|Array}</span> <b>args</b>
									<i>Optional</i>
								</dt>
								<dd>A single object, or an array of objects, to		pass as arguments to the function.</dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>ownerWindow</b>
									<i>Optional</i>
								</dt>
								<dd>The window that will be used to set the		timeout. By default the current "window".</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> A value that can be used to cancel the function execution.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name=".trim"> </a>
					<div class="fixedFont" style="float:left">&lt;static&gt; 
					
					<span class="light">{String}</span>
					<span class="light">CKFinder.tools.</span><b>trim</b>(str)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Removes spaces from the start and the end of a string. The followingcharacters are removed: space, tab, line break, line feed.
						
					</div>
					
					
					
						
							<pre class="code">alert( CKFinder.tools.trim( '  example ' );  // "example"</pre>
						
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{String}</span> <b>str</b>
									
								</dt>
								<dd>The text from which the spaces will be removed.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{String}</span> The modified string without the boundary spaces.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="dCopy"> </a>
					<div class="fixedFont" style="float:left">
					
					<span class="light">{Object}</span>
					<b>dCopy</b>(source)
					
					</div>
					<div style="float:right">
						<span class="heading">Since:</span>
							
								2.0
							
					</div>
					<div style="clear:both"></div>
					<div class="description">
						Creates an object which is an instance of a class whose prototype is apredefined object. All properties defined in the source object areautomatically inherited by the resulting object, including futurechanges to it.
						
					</div>
					
					
						<pre class="code"><span style="color:red">NO EXAMPLE AVAILABLE</span></pre>
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>source</b>
									
								</dt>
								<dd>The source object to be used as the prototype for		the final object.</dd>
							
							</dl>
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Object}</span> The resulting copy.</dd>
							
							</dl>
						
						
						

					
				
			

			<!-- ============================== event details ========================= -->		
			

			<hr />
		</div>
		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
	Copyright &copy; 2007-2015, <a href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
</div>

	</body>
</html>
